package java101;

import javax.swing.*;
import java.awt.event.*;
import java.awt.*;

public class Citation {

	public static void main(String[] args) 
	{
		new Citation();
	}

	JRadioButton MLA, Chicago;
	JTextField Title, Author, Publisher, City, Year, Pages;
	JButton okButton, closeButton;
	
	public Citation()
	{
		this.setTitle("Ez Cite");
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JPanel panel1 = new JPanel();
		panel1.setLayout(new GridBagLayout());
		
		addItem(panel1, new JLabel ("MLA")),
			0, 0, 1, 1, GridBagConstraints.EAST);
			
			
			
			private void addItem(JPanel p, JComponent c,
					int x, int y, int width, int height,
					int align)
			{
				GridBagConstraints gc =
						new GridBagConstraints();
				gc.gridx = x;
				gc.gridy = y;
				gc.gridwidth = width;
				gc.gridheight = height;
				gc.weightx = 100.0;
				gc.weighty = 100.0;
				gc.insets = new Insets(5, 5, 5, 5);
				gc.anchor = align;
				gc.fill = GridBagConstraints.NONE;
				p.add(c, gc);
			}
	}
		
}
